<?php
namespace app\api\controller\v1;
/*
 * content : 通过权限获取到链接 
 * Author  : Songyicong 
 * time    : 2018-05-05 10:04:51 
 * email   : m13726262373@163.com 
 */

 use app\api\controller\BaseController;
 use app\api\service\v1\MenuService;

 Class Menu extends BaseController{
    
    /** 是否验证 IP */
    public $ipAuth = true;
    /** 权限验证 */
    public $userAuth = true;
    /** 是否允许跨域 */
    public $isCrossDomain = true;
    /** 菜单类 */
    public $menuService;

    /** 初始化检测请求时间，签名 */
    public function __construct(){
        parent::__construct();
        $this->menuService = new MenuService();
    }

    /** 获取当前用户菜单 */
    public function getMenu(){
        $this->menuService()->getMenu($this->params);
    }

 }
